package com.cxso.example.request.wlpt;

import com.cxso.example.enums.wlpt.WalletTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Schema(description = "确认支付入参")
@Getter
@Setter
public class ApiConsignorPaymentConfirmReq extends ApiBaseReq {

    @Schema(description = "支付单ID（支付单ID和支付单编号二选一必填）")
    private String id;

    @Schema(description = "支付单编号（支付单ID和支付单编号二选一必填）")
    private String paymentCode;

    @Schema(description = "支付密码")
    @NotBlank(message = "支付密码不能为空")
    private String password;

    @Schema(description = "付款渠道")
    @NotNull(message = "付款渠道不能为空")
    private WalletTypeEnum walletType;

}
